package com.example.mahao_final.entity
import androidx.room.Entity
import androidx.room.PrimaryKey

@Entity(tableName = "blogs")
data class Blog(
    @PrimaryKey(autoGenerate = true) val id: Long = 0, // 自动生成ID
    val title: String,
    val description: String,
    val content: String,
    val author: String,
    val difficulty: Float, // 使用 RatingBar 的 rating 值
    val tags: List<String> // 存储标签
)
